package org.planaz.campusvoting.service;
import com.baomidou.mybatisplus.extension.service.IService;
import org.planaz.campusvoting.common.result.Result;
import org.planaz.campusvoting.pojo.Activity;
import org.planaz.campusvoting.pojo.ActivityFilter;
import org.planaz.campusvoting.pojo.Item;
import org.planaz.campusvoting.pojo.ItemFilter;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface ActivityService{
    Result<?> publish(ActivityFilter activity);

    Result<?> list(ActivityFilter activityFilter);

    Result<?> mylist(Activity activity);

    Result<?> modify(Activity activity);

    Result<?> add(Item item);

    Result<?> all(ItemFilter itemFilter);

    Result<?> like(Long id);
    Result<?> unlike(Long id);

    Result<?> modifyCandidate(Item item);

    Result<?> deleteA(Long id);

    Result<?> deleteI(Long id);

    Result<?> myVote(Long id);

    Result<?> myEnter(Long id);

    Result<?> activityDetail(Long actId);

    Result<?> myVoteAct(Long id);

    Result<?> allvote(Long actId);
}
